<?php
foreach ($pictures as $picture) {
    ?>
    <div style="padding:5px;width:170px;float:left">
        <a class="example-image-link" href="<?php echo $picture->file_path; ?>" data-lightbox="example-1">
            <img class="example-image" src="<?php echo $picture->file_path_min; ?>"
                 alt="<?php echo $picture->text; ?>" title="<?php echo $picture->text; ?>"/>
        </a>
    </div>
<?php
}
?>